/*
 * @Author: jlgit jlgit@itcode.cn
 * @Date: 2023-09-13 16:34:27
 * @LastEditors: jlgit jlgit@itcode.cn
 * @LastEditTime: 2023-09-15 13:24:31
 * @FilePath: \jl-shopping\src\store\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user'
import cart from './modules/cart'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
  },
  getters: {
    token (state) {
      return state.user.userInfo.token
    }
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    user,
    cart
  }
})
